const { defineConfig } = require("@vue/cli-service")
const path = require("path")

module.exports = defineConfig({
  transpileDependencies: true,
  pages: {
    index: {
      entry: "examples/main.js",
      template: "public/index.html",
      filename: "index.html",
    },
  },
  configureWebpack: {
    resolve: {
      alias: {
        //@ 指向example 目录
        "@": path.resolve("example"),
        //~ 指向packages 目录
        "~": path.resolve("packages"),
      },
    },
  },
})
